#!/bin/sh

layout_path="/home/nslu2/apps/lcd4linux/layouts"
layout_id="$1"
layout_filename="$layout_path/$layout_id.lcd"

if [ -f $layout_filename ]
then
  killall lcd4linux
  /usr/local/bin/lcd4linux -q -f $layout_filename
  echo "Set LCD Layout: '$layout_id'"
  exit 0
else
  echo "Cannot Set Layout"
  exit 1
fi
